import request from '@/utils/request'
// 获取住院病人列表
export function getHospitalMember(params) {
    return request({
        url: `/hospitalization/getHospitalMember`,
        method: "GET",
        params
    })
}

// 住院分床
export function distributeBed(params) {
    return request({
        url: `/hospitalization/distributeBed`,
        method: "POST",
        params
    })
}

// 获取病区
export function getAllIcu(params) {
    return request({
        url: `/sysbuild/getAllIcu`,
        method: "GET",
        params
    })
}

// 获取数据字典
export function dict_dataDictIndex(params) {
    return request({
        url: `/dict_data/dictIndex`,
        method: "GET",
        params
    })
}

// 获取医嘱执行列表
export function adviceGetExecutionList(params) {
    return request({
        url: `/advice/getExecutionList`,
        method: "GET",
        params
    })
}

//获取医嘱列表
export function adviceGetAdviceList(params) {
    return request({
        url: `/advice/getAdviceList`,
        method: "GET",
        params
    })
}

// 获取计价医嘱列表
export function getNurseAdvice(params) {
    return request({
        url: `/hospitalization/getNurseAdvice`,
        method: "GET",
        params
    })
}

// 设置护理等级
export function setNurseLevel(params) {
    return request({
        url: `/hospitalization/setNurseLevel`,
        method: "POST",
        params
    })
}

// 获取护理等级
export function getNurseLevel(params) {
    return request({
        url: `/hospitalization/getNurseLevel`,
        method: "GET",
        params
    })
}


// 医嘱校对
export function proofreaderAdvice(params) {
    return request({
        url: `/advice/proofreaderAdvice`,
        method: "POST",
        params
    })
}



// 停止医嘱
export function adviceNurseStopAdvice(params) {
    return request({
        url: `/advice/nurseStopAdvice`,
        method: "POST",
        params
    })
}

// 获取开立医嘱护士工作站
export function getAdviceDrug(params) {
    return request({
        url: `/hospitalization/getAdviceDrug`,
        method: "GET",
        params,
        is_loading: 1
    })
}

// 获取计价项目
export function getNurseAutoProject(params) {
    return request({
        url: `/hospitalization/getNurseAutoProject`,
        method: "GET",
        params,
    })
}
// 新增计价
export function createNurseAdvice(params) {
    return request({
        url: `/hospitalization/updateNurseAdvice`,
        method: "POST",
        params,
    })
}

// 删除计价
export function deleteNurseAdvice(params) {
    return request({
        url: `/hospitalization/deleteNurseAdvice`,
        method: "POST",
        params,
    })
}

// 抄送
export function getGenPharmacyDrug(params) {
    return request({
        url: `/advice/genPharmacyDrug`,
        method: "POST",
        params,
    })
}
// 撤销抄送
export function cancelPharmacyDrug(params) {
    return request({
        url: `/advice/cancelPharmacyDrug`,
        method: "POST",
        params,
    })
}

// 护理单列表
export function getNurseSheet(params) {
    return request({
        url: `/h_nurse/getNurseSheet`,
        method: "get",
        params,
    })
}

// 护理单录入
export function updateNurseSheet(params) {
    return request({
        url: `/h_nurse/updateNurseSheet`,
        method: "POST",
        params,
    })
}

// 护理单删除
export function deleteNurseSheet(params) {
    return request({
        url: `/h_nurse/deleteNurseSheet`,
        method: "POST",
        params,
    })
}





//体温单查询
// 
export function getTemperature(params) {
    return request({
        url: `/h_nurse/getTemperature`,
        method: "get",
        params,
    })
}

//体温单删除
// 
export function deleteTemperature(params) {
    return request({
        url: `/h_nurse/deleteTemperature`,
        method: "POST",
        params,
    })
}


export function updateTemperature(params) {
    return request({
        url: `/h_nurse/updateTemperature`,
        method: "POST",
        params,
    })
}


export function getDictIndex(params) {
    return request({
        url: `/dict_data/dictIndex`,
        method: "get",
        params,
    })
}

// 皮试录入
export function skinTest(params) {
    return request({
        url: `/hospitalization/skinTest`,
        method: "POST",
        params,
    })
}

// 获取皮试
export function getSkinTest(params) {
    return request({
        url: `/hospitalization/getSkinTest`,
        method: "get",
        params,
    })
}

// 医嘱执行
export function deductionAdvice(params) {
    return request({
        url: `/advice/deductionAdvice`,
        method: "POST",
        params,
    })
}


// 医嘱执行
export function refundDrug(params) {
    return request({
        url: `/advice/refundDrug`,
        method: "POST",
        params,
    })
}

//生成执行单
export function addExecutionRecord(params) {
    return request({
        url: `/advice/addExecutionRecord`,
        method: "POST",
        params,
    })
}
export function batchExectutionAdvice(params) {
    return request({
        url: `advice/batchExectutionAdvice`,
        method: "POST",
        params,
    })
}


///





// hospital_id:this.user.id